<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:forEach items="${attendances}" var="attendances">
    <table border="1px">
        <tr>
            <td>${attendances.id}</td>
            <td>${attendances.info}</td>
            <td>${attendances.enddata}</td>
            <td>${attendances.startdata}</td>
            <td>${attendances.data}</td>
            <td>
                <c:if test="${attendances.stuta==1}">启用</c:if>
                <c:if test="${attendances.stuta==0}">禁用</c:if>
            </td>
            <td>${attendances.student.stu_phone}</td>
            <td>${attendances.student.stu_name}</td>
            <td>${attendances.teacher.t_name}</td>
        </tr>
    </table>
</c:forEach>

</body>
</html>
